#ifndef I2C_TOUCH_SCREEN_H
#define I2C_TOUCH_SCREEN_H

#include "driver/i2c.h"
#include "esp_err.h"

#define I2C_MASTER_SCL_IO 15        // GPIO number for I2C master clock
#define I2C_MASTER_SDA_IO 13        // GPIO number for I2C master data
#define I2C_MASTER_RST_IO 12  
#define I2C_MASTER_INT_IO 34       //
#define I2C_MASTER_FREQ_HZ 100000   // I2C master clock frequency
#define I2C_MASTER_NUM I2C_NUM_0    // I2C port number
#define I2C_MASTER_TX_BUF_DISABLE 0 // I2C master do not need buffer
#define I2C_MASTER_RX_BUF_DISABLE 0 // I2C master do not need buffer
#define I2C_MASTER_TIMEOUT_MS 1000  // I2C timeout

#define TOUCH_SCREEN_I2C_ADDR 0x15  // I2C address of the touch screen

void i2c_master_init(void);
void touch_screen_init(void);
uint8_t touch_screen_read(uint16_t *xPos, uint16_t *yPos);

#endif // I2C_TOUCH_SCREEN_H
